// pages/mime/mine.js
Page({
    data: {
        latitude: 21.151952,
        longitude: 110.298847,
        jingwei: [{
            latitude: 21.151952,
            longitude: 110.298847,
        }, ]
    },
    getLocation() {
        var _this = this;
        _this.setData({
            latitude: 21.151952,
            longitude: 110.298847,
            jingwei: [{
                latitude: 21.151952,
                longitude: 110.298847
            }]
        })
    },
    concat() {
        wx.makePhoneCall({
            phoneNumber: '16666666666',
        })
    },

    getLocationme(){
            var _this = this;
            wx.getLocation({
              type:'gcj02',
              success(res){
                _this.setData({
                    latitude:res.latitude,
                    longitude:res.longitude,
                    jingwei:[{latitude:res.latitude,longitude:res.longitude}]
                })
              },
              fail(err){
                console.log(err);
              }
            })
          }
})